﻿using iWare.Wms.Core;
using iWare.Wms.Core.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace iWare.Wms.Application
{
    
    public class PalceInfoOtput
    {
        /// <summary>
        /// 总库位数
        /// </summary>
        public int countNum { get; set; }
        /// <summary>
        /// 总存货数
        /// </summary>
        public int cunhuoNum { get; set; }
        /// <summary>
        /// 空库位数
        /// </summary>
        public int emptyNum { get; set; }
        /// <summary>
        /// 空托盘数
        /// </summary>
        public int emptyContainerNum { get; set; }
        /// <summary>
        /// 物料数量
        /// </summary>
        public int materialNum { get; set; }
        /// <summary>
        /// 锁定库位数
        /// </summary>
        public int lockNum { get; set; }

        public List<PalceDetail> PalceDetails { get; set; }

    }

    public class PalceDetail
    {
        /// <summary>
        /// 库位ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 库位编码
        /// </summary>
        public string Placecode { get; set; }

        /// <summary>
        /// 库位状态
        /// </summary>
        public PlaceStatus Placestatus { get; set; }

        /// <summary>
        /// 是否锁定
        /// </summary>
        public YesOrNot Islock { get; set; }

        /// <summary>
        /// 是否空托
        /// </summary>
        public YesOrNot emptyContainer { get; set; }
    }


    public class MaterialDetailsOutput
    {
        /// <summary>
        /// 托盘编码
        /// </summary>
        public string Containercode { get; set; }

        /// <summary>
        /// 库位对象
        /// </summary>
        public PalceDetail PalceDetails { get; set; }

        /// <summary>
        /// 物料信息
        /// </summary>
        public List<WmsMaterialStock> WmsMaterialStocks { get; set; }
    }
}
